/* Download Section Styles */

.download-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 50%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.download-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Background Shapes */
.download-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.download-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    top: -100px;
    right: -100px;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    bottom: -80px;
    left: -80px;
    animation: floatShape 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatShape 6s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Content Layout */
.download-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

/* Text Side */
.download-text {
    flex: 1;
    max-width: 500px;
}

.download-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.download-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

/* Features List */
.download-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.download-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #444;
}

.download-features li i {
    color: #10b981;
    font-size: 1.1rem;
}

/* Download Button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.download-btn i {
    font-size: 1.4rem;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.45);
}

.download-btn:active {
    transform: translateY(-1px);
}

/* QR Code Side */
.download-qr-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* QR Card */
.qr-card {
    position: relative;
    background: #fff;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 2;
}

.qr-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 32px;
    filter: blur(20px);
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

.qr-code {
    width: 180px;
    height: 180px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
}

.qr-code canvas,
.qr-code img {
    border-radius: 8px;
}

.qr-text {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Phone Mockup */
.phone-mockup {
    position: absolute;
    width: 120px;
    height: 240px;
    background: linear-gradient(145deg, #1a1a2e, #2d2d44);
    border-radius: 24px;
    padding: 8px;
    right: -60px;
    bottom: -40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: rotate(-10deg);
    z-index: 1;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-logo {
    width: 60%;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Clouds Animation */
.download-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.download-clouds .cloud {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.7) 100%);
    border-radius: 100px;
    filter: blur(2px);
    opacity: 0.5;
}

.download-clouds .cloud::before,
.download-clouds .cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.download-clouds .cloud-1 {
    width: 160px;
    height: 48px;
    top: 15%;
    right: -200px;
    animation: cloudMoveRTL 25s linear infinite;
}
.download-clouds .cloud-1::before { width: 62px; height: 62px; top: -31px; left: 22px; }
.download-clouds .cloud-1::after { width: 48px; height: 48px; top: -24px; left: 75px; }

.download-clouds .cloud-2 {
    width: 140px;
    height: 42px;
    top: 50%;
    right: -180px;
    animation: cloudMoveRTL 30s linear infinite;
    animation-delay: -10s;
}
.download-clouds .cloud-2::before { width: 55px; height: 55px; top: -28px; left: 18px; }
.download-clouds .cloud-2::after { width: 42px; height: 42px; top: -21px; left: 65px; }

.download-clouds .cloud-3 {
    width: 180px;
    height: 55px;
    top: 80%;
    right: -220px;
    animation: cloudMoveRTL 22s linear infinite;
    animation-delay: -5s;
}
.download-clouds .cloud-3::before { width: 70px; height: 70px; top: -35px; left: 25px; }
.download-clouds .cloud-3::after { width: 55px; height: 55px; top: -28px; left: 85px; }

/* Sparkles */
.download-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.download-sparkles .sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ffd700 0%, #ffec8b 50%, transparent 70%);
    border-radius: 50%;
    animation: sparkleDownload 2.5s ease-in-out infinite;
    box-shadow: 0 0 12px #ffd700, 0 0 24px #ffd700;
}

.download-sparkles .sparkle-1 { top: 10%; left: 5%; animation-delay: 0s; }
.download-sparkles .sparkle-2 { top: 20%; right: 10%; animation-delay: 0.3s; }
.download-sparkles .sparkle-3 { top: 40%; left: 8%; animation-delay: 0.6s; }
.download-sparkles .sparkle-4 { top: 60%; right: 5%; animation-delay: 0.9s; }
.download-sparkles .sparkle-5 { top: 75%; left: 3%; animation-delay: 1.2s; }
.download-sparkles .sparkle-6 { top: 90%; right: 8%; animation-delay: 1.5s; }

@keyframes sparkleDownload {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.3); }
}

@keyframes cloudMoveRTL {
    0% { right: -250px; }
    100% { right: 100%; }
}

/* Header Download Button */
.header-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.header-download-btn i {
    font-size: 1.1rem;
}

.header-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .download-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .download-text {
        max-width: 100%;
    }
    
    .download-features {
        justify-content: center;
    }
    
    .phone-mockup {
        right: -40px;
        bottom: -30px;
        width: 100px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .download-section {
        padding: 60px 0;
    }
    
    .download-title {
        font-size: 2rem;
    }
    
    .download-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .download-features li {
        justify-content: center;
    }
    
    .qr-card {
        padding: 1.5rem;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
    
    .phone-mockup {
        display: none;
    }
    
    .download-clouds .cloud { display: none; }
    .download-sparkles .sparkle { width: 8px; height: 8px; }
    
    .header-download-btn span {
        display: none;
    }
    
    .header-download-btn {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .download-container {
        padding: 0 1rem;
    }
    
    .download-title {
        font-size: 1.6rem;
    }
    
    .download-subtitle {
        font-size: 1rem;
    }
    
    .download-btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .qr-code {
        width: 130px;
        height: 130px;
    }
}

/* ===================================
   LTR (Left-to-Right) Styles
   =================================== */

html[dir="ltr"] .shape-1 {
    right: auto;
    left: -100px;
}

html[dir="ltr"] .shape-2 {
    left: auto;
    right: -80px;
}

html[dir="ltr"] .phone-mockup {
    right: auto;
    left: -60px;
    transform: rotate(10deg);
}

/* LTR Clouds Animation */
html[dir="ltr"] .download-clouds .cloud-1,
html[dir="ltr"] .download-clouds .cloud-2,
html[dir="ltr"] .download-clouds .cloud-3 {
    right: auto;
    left: -250px;
    animation-name: cloudMoveLTR;
}

@keyframes cloudMoveLTR {
    0% { left: -250px; }
    100% { left: 100%; }
}

@media (max-width: 992px) {
    html[dir="ltr"] .phone-mockup {
        left: -40px;
    }
}
